/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.ufpb.halloc.dados;

/**
 *
 * @author Filipe
 */
public class ProfessorDAOBDFactory extends ProfessorDAOFactory {
    
        
    public static final int PGSQL = 1;
    private static ProfessorDAOBDFactory professorDAOFactory;
    
    /*SINGLETON*/
    public static ProfessorDAOBDFactory getInstance(){
        if (professorDAOFactory == null)
            professorDAOFactory = new ProfessorDAOBDFactory();
        return professorDAOFactory;
    }
    
    // construtor
    private ProfessorDAOBDFactory(){
        //TODO
    }    
    
    @Override
    public ProfessorDAO getProfessorDAO(int tipo) {
        
        switch (tipo){
            case PGSQL:
                return ProfessorDAOPostgres.getInstance();
            default:
                return null;
        }
        
    } 
}
